package com.make.house.api.repository.user;

import com.make.house.api.entity.user.UserAuthEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by xujun on 2017/11/3.
 * 用户资料表对应的JPa操作
 */
@Repository
public interface UserAuthRepository extends JpaRepository<UserAuthEntity, Integer> {
    UserAuthEntity findByIdentifierAndIdentityType(String identifier, String identity_type);
    UserAuthEntity findByIdentifier(String identifier);
    UserAuthEntity findByUid(String uid);
    UserAuthEntity findByUidAndIdentityType(String uid, String identity_type);
}
